Harrison Barnes registered a team high 21 points to go along with seven rebounds as the Dallas Mavericks defeated the Brooklyn Nets 105-96.